import request from "@/utils/request";

// 查询场景管理列表
export function listManagementScene(query) {
  return request({
    url: "/ruoyi-device/managementScene/list",
    method: "get",
    params: query,
  });
}

// 查询场景管理详细
export function getManagementScene(id) {
  return request({
    url: "/ruoyi-device/managementScene/" + id,
    method: "get",
  });
}

// 新增场景管理
export function addManagementScene(data) {
  return request({
    url: "/ruoyi-device/managementScene",
    method: "post",
    data: data,
  });
}

// 修改场景管理
export function updateManagementScene(data) {
  return request({
    url: "/ruoyi-device/managementScene",
    method: "put",
    data: data,
  });
}

// 删除场景管理
export function delManagementScene(id) {
  return request({
    url: "/ruoyi-device/managementScene/" + id,
    method: "delete",
  });
}

